package com.qys.livesMall.app.user.controller.sys;


import com.qys.livesMall.app.user.model.vo.sys.SysUserStatisticsTeamVO;
import com.qys.livesMall.app.user.service.UserStatisticsTeamService;
import com.qys.livesMall.common.result.R;
import com.qys.livesMall.framework.view.BaseQuery;
import com.qys.livesMall.framework.view.QysPage;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Tag(name = "sys-用户团队数据")
@RequestMapping("/sys/user/statisticsteam")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SysUserStatisticsTeamController {

    private final UserStatisticsTeamService userStatisticsTeamService;

    @PostMapping("/teamPage")
    @Operation(summary = "分页查询用户统计信息")
    public R<QysPage<SysUserStatisticsTeamVO>> teamPage(@RequestBody BaseQuery pageDTO) {
       return R.ok(userStatisticsTeamService.teamPage(pageDTO));
    }
}
